﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Content.Master" AutoEventWireup="true" CodeBehind="SendBox.aspx.cs" Inherits="RED_NET.ContentPage.SendBox" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<link href="../Image_Css/NewsCss/SendBoxCss.css" rel="Stylesheet" type="text/css" />
<div class="Cent" align="center">
<br />
<div class="Send1">
 <asp:LinkButton ID="LinkButton_Sendletter" runat="server" 
        PostBackUrl="~/ContentPage/News/SendLetter.aspx" BackColor="Silver" 
        BorderColor="Silver" BorderStyle="Solid">写站内信</asp:LinkButton>
 &nbsp;
    <asp:LinkButton ID="LinkButton_Inbox" runat="server" 
        PostBackUrl="~/ContentPage/News/InBox.aspx" BackColor="Silver" 
        BorderColor="Silver" BorderStyle="Solid">收件箱</asp:LinkButton>
&nbsp;
    <asp:LinkButton ID="LinkButton_Sendbox" runat="server" 
        PostBackUrl="~/ContentPage/News/SendBox.aspx" BackColor="Silver" 
        BorderColor="Silver" BorderStyle="Solid">发件箱</asp:LinkButton>
 </div>
   <br />
     
        <asp:Label ID="Label_NULL" runat="server" Text="暂无邮件！！" ForeColor="White" Font-Size="Larger" Visible="false"></asp:Label>
    <div  class="Send2" >
    <asp:GridView ID="GridView_Letter" runat="server" AutoGenerateColumns="False"  
            AllowPaging="True"  PagerSettings-Mode="Numeric" 
        onrowcreated="GridView_Letter_RowCreated"   OnPageIndexChanging="GridView_Letter_PageIndexChanging"
         OnRowCommand="GridView_Letter_RowCommand" AlternatingRowStyle-Wrap="False" 
            ShowHeader="False" Width="85%" GridLines="None" BackColor="White" 
            BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" 
            CellSpacing="1"    >
   
          <RowStyle BackColor="#DEDFDE" ForeColor="Black"   />
    <Columns> 
    
    <asp:TemplateField     >
                    <ItemTemplate>
                  <br />
                        <table id="tb">
                            <tr>
                                <td id="td1">
                 <div id="div1">
                    <asp:Image ID="avatar" runat="server" Height="60px" Width="60px"  ImageUrl='<%#Eval("_AvatarUrl")%>' />
                    <br />
                        <asp:Label ID="Label_NickName" runat="server" Text='<%#Eval("_NickName")%>'></asp:Label>
                       </div>
                        </td>
                                <td id="td2">
                         <asp:LinkButton ID="LinkButton_Title" Width="200px"  Text='<%#Eval("_Title")%>' PostBackUrl='<%#"ShowLetter.aspx?VISIT_ID="+Eval("_UID")+"&_NewsId="+Eval("_Id")%>' runat="server"></asp:LinkButton>
                        </td>
                                <td id="td3">
                        <asp:Label ID="Label_AddTime" runat="server" Text='<%#Eval("_AddTime")%>'></asp:Label>
                      </td>
                                <td id="td4">
                            <asp:LinkButton ID="LinkButton_Delete" CommandArgument="1" Text="删除"  CommandName="delete"   runat="server"></asp:LinkButton>
                        </td>
                            </tr>
                        </table>
                        <br />
                          <hr id="hr1"/>      
                    </ItemTemplate>


 </asp:TemplateField>
    <asp:BoundField DataField="_Id" />
     <asp:BoundField  DataField="_UserName"  />
 

    </Columns>
          <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
          <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
          <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
          <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />

<AlternatingRowStyle Wrap="False"></AlternatingRowStyle>
    </asp:GridView>
    </div>
        <hr  style="color:White"/>
        </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
</asp:Content>
